package com.ztom.test

import com.ztom.beans.factory.support.extenssions.getBean
import com.ztom.context.support.ClassPathXmlApplicationContext
import com.ztom.test.bean.Person
import kotlin.test.Test

/**
 * @author ZhangTao
 */
class Test11FactoryBean {

    @Test
    fun test() {
        val applicationContext = ClassPathXmlApplicationContext("classpath:spring-11-factory-bean.xml")

        val person = applicationContext.getBean<Person>()
        println(person)

        applicationContext.close()
    }
}